﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {
    import flash.geom.*;

    public class Cloud extends Vehicle {

        private var m_ForcedScale:Number = -1;
        private var m_originalHeight:Number = -1;
        private var m_ForcedHeight:Number = -1;
        private var m_originalWidth:Number = -1;
        private var m_ForcedWidth:Number = -1;
        private var m_ColorHue:uint = 0xFFFFFF;

        public function Cloud(_arg1:String, _arg2:Boolean=false){
            super(_arg1, _arg2);
            m_objectType = WorldObjectTypes.NPC;
        }
        override protected function getLayerName():String{
            return ("clouds");
        }
        override public function get isCloud():Boolean{
            return (true);
        }
        override public function onUpdate(_arg1:Number):void{
            super.onUpdate(_arg1);
        }
        public function get cloudScale():Number{
            return (this.m_ForcedScale);
        }
        public function set cloudScale(_arg1:Number):void{
            this.m_ForcedScale = _arg1;
        }
        override public function colorOverride():Boolean{
            return (true);
        }
        override public function colorOverrideHue():uint{
            return (this.m_ColorHue);
        }
        public function setColorOverrideHue(_arg1:uint):void{
            this.m_ColorHue = _arg1;
        }
        override public function colorOverrideAlpha():Number{
            return (1);
        }
        override public function widthOverride():Number{
            if (m_itemImage == null){
                return (-1);
            };
            if (this.m_originalWidth == -1){
                this.m_originalWidth = m_itemImage.width;
            };
            return ((this.m_originalWidth * this.m_ForcedScale));
        }
        override public function heightOverride():Number{
            if (m_itemImage == null){
                return (-1);
            };
            if (this.m_originalHeight == -1){
                this.m_originalHeight = m_itemImage.height;
            };
            return ((this.m_originalHeight * this.m_ForcedScale));
        }
        public function getStartCoordinatesBasedOnView(_arg1:Number):Point{
            var _local2:Rectangle = m_displayObject.getRect(GlobalEngine.viewport);
            return (new Point(0, 0));
        }

    }
}//package Classes 
